var CCIN = function (cName, ifaceName) {
	return Cc[cName].createInstance(Ci[ifaceName]);
};
	
var ult={
	init:function(){
//		Components.utils.import("resource://gre/modules/FileUtils.jsm");
		// ulttool.Cc = Components.classes;
		// ulttool.Ci = Components.interfaces;
		ulttool.console = ulttool.Cc["@mozilla.org/consoleservice;1"].getService(ulttool.Ci.nsIConsoleService);
		// ulttool.scriptloader= ulttool.Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(ulttool.Ci.mozIJSSubScriptLoader);
		// ulttool.ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
		// ulttool.ResProt = ulttool.ioService.getProtocolHandler("resource").QueryInterface(ulttool.Ci.nsIResProtocolHandler);
		// ulttool.ResProt.setSubstitution('antiyouku', ulttool.ioService.newURI("chrome://antiyouku/content/player/", null, null));
	},
	loginfo:function(infostr){
		ulttool.console.logStringMessage(infostr);
	},
	
	max:function(a,b){
		if(a>=b) return a ;
		return b;
	}
};

ult.init();